/**
 * 招聘管理接口
 */
import request from '@/utils/request';

export async function getOrgTree(params) {
    // return request('/api/uc/org/v1/info/getAllParentNameByOrgCode', {
    return request('/api/uc/org/v1/queryOrganizationInfo', {
        method: 'POST',
        data: params
    });
}

// 创建讨论群
export async function createGroup(params) {
    return request('/api/im/group/v1/create', {
        method: 'POST',
        data: params
    });
}

// 绑定群id
export async function bindGroupId(params) {
    return request(`/api/workflowweb/processinstance/v1/process/formdatabind/${params?.processInstanceId}`, {
        method: 'POST',
        data: { groupId: params?.groupId }
    });
}
